<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:86:"/www/wwwroot/crm.liunuo.net/public/../application/user/view/index/account_mobile.phtml";i:1552999926;s:67:"/www/wwwroot/crm.liunuo.net/application/user/view/base_mobile.phtml";i:1552999924;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title><?php echo config('website.site_name')?></title>
<link rel="stylesheet" type="text/css" href="/static/hui/css/hui.css" />
<style>.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}</style>

</head>
<body>

<header class="hui-header">
    <div id="hui-back"></div>
    <h1>认证信息</h1>
    <div id="hui-header-menu" onclick="hui.showSlideMenu();"></div>
</header>
<div class="hui-wrap">
    <form action="<?php echo request()->url(); ?>" class="hui-form" method="post">
        <div class="hui-form-items">
            <div class="hui-form-items-title">账户状态</div>
            <?php if($data['is_auth'] =='99'): ?>
            <a class="hui-button hui-button-small hui-success hui-fl">审核通过</a>
            <?php elseif($data['is_auth'] =='2'): ?>
            <a class="hui-button hui-button-small hui-danger hui-fl">审核不通过</a>
            <?php elseif($data['is_auth'] =='1'): ?>
            <a class="hui-button hui-button-small hui-primary hui-fl">信息待审核</a>
            <?php else: ?>
            <a class="hui-button hui-button-small hui-fl">未审核</a>
            <?php endif; ?>
        </div>
        <div class="hui-form-items">
            <div class="hui-form-items-title">认证名称</div>
            <input type="text" name="shopname" value="<?php echo (isset($data['shopname']) && ($data['shopname'] !== '')?$data['shopname']:''); ?>" autocomplete="off" placeholder="" lay-verify="required" class="hui-input hui-input-clear" <?php if($data['is_auth'] =='99'): ?>disabled<?php endif; ?>>
        </div>
        <div class="hui-form-items">
            <div class="hui-form-items-title">联系电话</div>
            <input type="text" name="mobile" value="<?php echo (isset($data['mobile']) && ($data['mobile'] !== '')?$data['mobile']:''); ?>" autocomplete="off" placeholder="" lay-verify="required" class="hui-input" <?php if($data['is_auth'] =='99'): ?>disabled<?php endif; ?>>
        </div>
        <div class="hui-form-items">
            <div class="hui-form-items-title">证件类型</div>
            <div class="hui-form-select">
                <select name="cert_type" <?php if($data['is_auth'] =='99'): ?>disabled<?php endif; ?>>
                    <option value="">请选择证件类型</option>
                    <option value="1" <?php if(isset($data) and $data['cert_type'] == 1): ?>selected="selected"<?php endif; ?>>身份证</option>
                    <option value="2" <?php if(isset($data) and $data['cert_type'] == 2): ?>selected="selected"<?php endif; ?>>营业执照</option>
                </select>
            </div>
        </div>
        <div class="hui-form-items">
            <div class="hui-form-items-title">证件号码</div>
            <input type="text" name="cert_number" value="<?php echo (isset($data['cert_number']) && ($data['cert_number'] !== '')?$data['cert_number']:''); ?>" autocomplete="off" placeholder="" lay-verify="required" class="hui-input" <?php if($data['is_auth'] =='99'): ?>disabled<?php endif; ?>>
        </div>
        <div class="hui-form-items">
            <div class="hui-form-items-title">证件图片</div>
            <?php if($data['is_auth'] =='99'): ?>
            <img src="<?php echo (isset($data['cert_image']) && ($data['cert_image'] !== '')?$data['cert_image']:''); ?>" width="100%">
            <?php else: ?>
            <input type="text" name="cert_image" value="<?php echo (isset($data['cert_image']) && ($data['cert_image'] !== '')?$data['cert_image']:''); ?>" autocomplete="off" placeholder="" class="hui-input">
            <button type="button" class="layui-btn layui-btn-primary layui-btn-position ajax-images"><i class="fa fa-file-image-o"></i> 选择图片</button>
            <?php endif; ?>
        </div>
        <?php if($data['is_auth'] !='99'): ?>
        <div style="padding:15px 8px;">
            <button class="hui-button hui-button-large hui-primary" lay-filter="*" lay-submit="">保存</button>
        </div>
        <?php endif; ?>     
    </form>
</div>

<div class="hui-slide-menu">
    <ul>
        <?php if(is_array($navbar) || $navbar instanceof \think\Collection || $navbar instanceof \think\Paginator): if( count($navbar)==0 ) : echo "" ;else: foreach($navbar as $key=>$v): if($v['id']=='1'): if(is_array($v['children']) || $v['children'] instanceof \think\Collection || $v['children'] instanceof \think\Paginator): if( count($v['children'])==0 ) : echo "" ;else: foreach($v['children'] as $key=>$n1): ?>
                    <li><a href="javascript:hui.open('<?php echo \think\Request::instance()->root(true); ?>/<?php echo $n1['url']; ?>');"><?php echo $n1['name']; ?></a></li>
                <?php endforeach; endif; else: echo "" ;endif; endif; endforeach; endif; else: echo "" ;endif; ?>
        <li><a href="javascript:hui.open('<?php echo url('user/index/logout'); ?>');">退出账户</a></li>
        <li style="padding-top:30px;">
            <button type="button" class="hui-button hui-button-large" onclick="hui.closeSlideMenu();">关闭菜单</button>
        </li>
    </ul>
</div>
<div id="hui-footer">
    <a href="javascript:hui.open('/user/');" id="nav-home">
        <div class="hui-footer-icons hui-icons-home"></div>
        <div class="hui-footer-text">首页</div>
    </a>
    <a href="javascript:hui.open('/user/customer/track');" id="nav-news">
        <div class="hui-footer-icons hui-icons-news"></div>
        <div class="hui-footer-text">跟踪</div>
    </a>
    <div style="width:20%; text-align:center;" class="hui-fl">
        <img src="/static/hui/img/logo_footer.png" height="44" onclick="hui.open('/user/customer/');" />
    </div>
    <a href="javascript:hui.open('/user/customer/remind');" id="nav-forum">
        <div class="hui-footer-icons hui-icons-forum"></div>
        <div class="hui-footer-text">提醒</div>
    </a>
    <a href="javascript:hui.showSlideMenu();" id="nav-my" id="hui-header-menu" onclick="hui.showSlideMenu();">
        <div class="hui-footer-icons hui-icons-my"></div>
        <div class="hui-footer-text">我的</div>
    </a>
</div>
<script src="/static/hui/js/hui.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
hui.slideMenu();
//hui('#nav-my').pointMsg();
//hui('#nav-news').pointMsg('hot', null, null, null, '1px');
<?php $remind_sum= today_remind_sum();?>
hui('#nav-forum').pointMsg(<?php echo $remind_sum['count']; ?>);
</script>
<script src="/static/libs/layui/layui.all.js"></script>
<script src="/static/js/jquery.min.js"></script>
<script src="/static/js/layui.base_mobile.js"></script>

</body>
</html>